package com.qfoud.edu.aunt.commons.dao;

import com.qfoud.edu.aunt.commons.pojo.Role;

import java.util.List;

/**
 * @author xiaobobo
 * @title: IRoleDAO
 * @projectName cd-java-2303-project-parent
 * @description: TODO
 * @date 2023/5/16  10:23
 */
public interface IRoleDAO {


    /**
     * 通过用户id查询用户具有的角色
     * @param userId
     * @return
     */
    List<Role> findRolesByUserId(Integer userId) throws Exception;

}
